From 1a75c4d8c6f80b5222c47c64e61fb7626d0e1bca Mon Sep 17 00:00:00 2001 From: rajat693 Date: Tue, 3 Sep 2024 18:59:35 +0530 Subject: [PATCH] fix: updated docs for checkbox and radio component --- .../components/Checkbox/index.nw.stories.mdx | 42 ++++++++ .../src/components/Radio/index.nw.stories.mdx | 102 +++++++----------- 2 files changed, 83 insertions(+), 61 deletions(-) diff --git a/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx index 245c52f93..59284e127 100644 --- a/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx @@ -365,6 +365,48 @@ Contains all indicators related layout style props and actions. It inherits all Contains all Icon related layout style props and actions. It inherits all the properties of gluestack Style's [AsForwarder](/style/docs/api/as-forwarder) component. +<> + + + + + + Prop + + + Type + + + Default + + + Description + + + + + + + + forceMount + + + + boolean + + + false + + + Forces mounting when more control is needed, useful for animations with React libraries. + + + +
+
+ + + #### CheckboxLabel Contains all Label related layout style props and actions. It inherits all the properties of React Native's [Text](https://reactnative.dev/docs/text) component. diff --git a/example/storybook-nativewind/src/components/Radio/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Radio/index.nw.stories.mdx index c9629cf39..5b9904d49 100644 --- a/example/storybook-nativewind/src/components/Radio/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Radio/index.nw.stories.mdx @@ -306,6 +306,47 @@ Contains all Indicator related layout style props and actions. It inherits all t Contains all Icon related layout style props and actions. It inherits all the properties of gluestack Style's [AsForwarder](/style/docs/api/as-forwarder) component. +<> + + + + + + Prop + + + Type + + + Default + + + Description + + + + + + + + forceMount + + + + boolean + + + false + + + Forces mounting when more control is needed, useful for animations with React libraries. + + + +
+
+ + #### RadioLabel Contains all Label related layout style props and actions. It inherits all the properties of React Native's [Text](https://reactnative.dev/docs/text) component. @@ -423,67 +464,6 @@ We have outlined the various features that ensure the Radio component is accessi Radio component is created using Pressable component from react-native. It extends all the props supported by [React Native Pressable](https://reactnative.dev/docs/pressable#props). - - - - ### Examples The Examples section provides visual representations of the different variants of the component, allowing you to quickly and easily determine which one best fits your needs. Simply copy the code and integrate it into your project.