diff --git a/example/storybook-nativewind/package.json b/example/storybook-nativewind/package.json index 2f221e9f00..250c129d4a 100644 --- a/example/storybook-nativewind/package.json +++ b/example/storybook-nativewind/package.json @@ -27,9 +27,9 @@ "@expo/html-elements": "^0.4.2", "@expo/webpack-config": "^0.17.2", "@geometricpanda/storybook-addon-iframe": "^0.2.2", - "@gluestack-style/react": "^1.0.49", + "@gluestack-style/react": "^1.0.50", "@gluestack-ui/config": "^1.1.10", - "@gluestack-ui/themed": "^1.1.8", + "@gluestack-ui/themed": "^1.1.10", "@gluestack/design-system": "^0.5.27", "@legendapp/motion": "^2.2.0", "@react-aria/button": "^3.7.0", diff --git a/example/storybook-nativewind/src/components/Accordion/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Accordion/index.themed.stories.mdx index 7fbc58b159..5d98f9bc67 100644 --- a/example/storybook-nativewind/src/components/Accordion/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Accordion/index.themed.stories.mdx @@ -52,7 +52,7 @@ The Examples section provides visual representations of the different variants o The following example demonstrates how easily you can customize the Accordion component to suit your needs. - + - + ### Rounded corners The borderRadius prop can be used to create rounded corners for both the Accordion and AccordionItem components. - + - + ### Disabled item You can disable an item by setting the isDisabled prop to true. This will prevent the user from interacting with the item and its content. You can also disable the whole accordion by setting the isDisabled prop to true on the Accordion component. - + - + ### Default value Use the defaultValue prop to define the open item by default. - + - + ### Nested Components You can nest Accordion components to create a nested accordion. This is useful when you want to group related content together. In the following example, we have created a nested accordion to group the states of USA by region. - + - + ### Controlled Accordion A component is controlled when it's managed by its parent using props. You can make the Accordion component controlled by passing the value prop to the Accordion and setting the onValueChange to update the value prop. In the following example, we have created a controlled accordion to display the expanded state of the accordion. - + - + diff --git a/example/storybook-nativewind/src/components/Actionsheet/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Actionsheet/index.themed.stories.mdx index 04f7b06ac3..d8ef3afee0 100644 --- a/example/storybook-nativewind/src/components/Actionsheet/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Actionsheet/index.themed.stories.mdx @@ -55,7 +55,6 @@ import { } from '../../core-components/themed'; import { KeyboardAvoidingView, - Platform, } from '@gluestack-ui/themed'; import { LeadingIcon, IconRoot } from '@gluestack-ui/themed'; import { transformedCode } from '../../utils'; @@ -72,6 +71,7 @@ import { import { config } from '@gluestack-ui/config'; import Wrapper from '../../core-components/themed/Wrapper'; import { CollapsibleCode } from '@gluestack/design-system'; +import {Platform} from 'react-native'; This is an illustration of **Actionsheet** component. @@ -561,16 +561,561 @@ We have outlined the various features that ensure the Actionsheet component is a - VoiceOver: When the actionsheet is focused, the screen reader will announce the button group . -## Spec Doc +## Examples -Explore the comprehensive details of the Actionsheet in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. +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. - +It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. \ No newline at end of file diff --git a/example/storybook-nativewind/src/components/Center/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Center/index.themed.stories.mdx index ab5ab27951..dbb1d0d6b6 100644 --- a/example/storybook-nativewind/src/components/Center/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Center/index.themed.stories.mdx @@ -87,17 +87,3 @@ This section provides a comprehensive reference list for the component props, de #### Center It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. - -## Spec Doc - -Explore the comprehensive details of the Center in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. - - diff --git a/example/storybook-nativewind/src/components/Checkbox/Checkbox.stories.tsx b/example/storybook-nativewind/src/components/Checkbox/Checkbox.stories.tsx index 199ae0f168..616a59c5ec 100644 --- a/example/storybook-nativewind/src/components/Checkbox/Checkbox.stories.tsx +++ b/example/storybook-nativewind/src/components/Checkbox/Checkbox.stories.tsx @@ -22,11 +22,16 @@ const CheckboxMeta: ComponentMeta = { control: 'boolean', options: [true, false], }, + isFocusVisible: { + control: 'boolean', + options: [true, false], + }, }, args: { size: 'md', isDisabled: false, isInvalid: false, + isFocusVisible: false, }, }; 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 893439e22b..6947a2f3b7 100644 --- a/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Checkbox/index.nw.stories.mdx @@ -46,7 +46,7 @@ import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Checkbox** component. - + - +
@@ -143,7 +143,7 @@ This section provides a comprehensive reference list for the component props, de Contains all Checkbox related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. - + @@ -330,7 +330,7 @@ Contains all Checkbox related layout style props and actions. It inherits all th
-
+ #### CheckboxIndicator @@ -348,7 +348,7 @@ Contains all Label related layout style props and actions. It inherits all the p Contains all Group related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. - + @@ -451,7 +451,7 @@ Contains all Group related layout style props and actions. It inherits all the p
-
+ ### Features @@ -488,7 +488,7 @@ Checkbox component is created using Pressable component from react-native. It ex #### Checkbox - + @@ -521,7 +521,7 @@ Checkbox component is created using Pressable component from react-native. It ex
-
+ > Note: These props are exclusively applicable when utilizing the default configuration of gluestack-ui/config. If you are using a custom theme, these props may not be available. @@ -533,7 +533,7 @@ The Examples section provides visual representations of the different variants o Checkbox provide a mutually exclusive selection mechanism, allowing users to choose a multiple option from a set of related choices. - + - + #### Horizontal A horizontal component incorporating a checkbox allows for intuitive and space-efficient selection of multiple options within a linear layout. - + - + #### With help text A checkbox component with help text provides informative guidance alongside selectable options, ensuring clarity and ease of use. - + - + #### Form Control A checkbox component integrated with form control enhances the user experience by enabling easy selection and submission of options within a structured input context. - + - + #### Label left A checkbox component with Label left configuration aligns the label to the left, facilitating clear association between the option and its corresponding checkbox. - + - + #### Controlled A controlled component architecture incorporates a checkbox component, allowing for precise management of its state and behavior through explicit control mechanisms. - + - + #### Uncontrolled An uncontrolled component utilizes a checkbox component, providing a simpler implementation where the checkbox state is managed internally, without explicit control from external sources. - + - + #### Checkbox group The checkbox group component allows users to group checkbox and display them in a horizontal or vertical row for better visual representation and functionality. - + - + diff --git a/example/storybook-nativewind/src/components/Checkbox/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Checkbox/index.themed.stories.mdx index 5d02e583ce..8fed7fcb42 100644 --- a/example/storybook-nativewind/src/components/Checkbox/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Checkbox/index.themed.stories.mdx @@ -14,23 +14,25 @@ import { Meta } from '@storybook/addon-docs'; + import { Checkbox, CheckboxGroup, CheckboxIndicator, CheckboxIcon, CheckboxLabel, -} from '../../core-components/themed'; -import { Text, RemoveIcon, FormControl, Icon, CheckIcon, + Center, + VStack, + HStack, + Heading, + Box } from '../../core-components/themed'; import { useState, useRef } from 'react'; -import { Center, VStack } from '../../core-components/themed'; -import { HStack, Heading, Box } from '../../core-components/themed'; import { transformedCode } from '../../utils'; import { @@ -39,14 +41,13 @@ import { Table, TableContainer, InlineCode, + CollapsibleCode } from '@gluestack/design-system'; - import Wrapper from '../../core-components/themed/Wrapper'; -import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Checkbox** component. - + - +
@@ -143,7 +144,7 @@ This section provides a comprehensive reference list for the component props, de Contains all Checkbox related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. - + @@ -330,12 +331,12 @@ Contains all Checkbox related layout style props and actions. It inherits all th
-
+ **Descendants Styling Props** Props to style child components. - + @@ -382,7 +383,7 @@ Props to style child components.
-
+ #### CheckboxIndicator @@ -400,7 +401,7 @@ Contains all Label related layout style props and actions. It inherits all the p Contains all Group related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view) component. - + @@ -503,7 +504,7 @@ Contains all Group related layout style props and actions. It inherits all the p
-
+ ### Features @@ -540,7 +541,7 @@ Checkbox component is created using Pressable component from react-native. It ex #### Checkbox - + @@ -573,18 +574,484 @@ Checkbox component is created using Pressable component from react-native. It ex
-
+ + +### 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. + +#### Multiple Checkbox + +Checkbox provide a mutually exclusive selection mechanism, allowing users to choose a multiple option from a set of related choices. + + + { + setValues(keys) + }}> + + + + + + Framer + + + + + + Invision Studio + + + + + + Adobe XD + + + + ) + } + `, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + Wrapper, + Center, + CheckIcon, + Icon, + VStack, + useState, + }, + argsType: {}, + }} + /> + + +#### Horizontal + +A horizontal component incorporating a checkbox allows for intuitive and space-efficient selection of multiple options within a linear layout. + + + { + setValues(keys) + }}> + + + + + + Illustration + + + + + + Animation + + + + + + Typography + + + + ) + } +`, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Wrapper, + CheckIcon, + Icon, + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + HStack, + useState, + }, + argsType: {}, + }} + /> + -## Spec Doc +#### With help text -Explore the comprehensive details of the Input in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. +A checkbox component with help text provides informative guidance alongside selectable options, ensuring clarity and ease of use. - + + { + setValues(keys) + }}> + + + + + + + Design + + Subscribe to updates from the Design Feed + + + + + + + Marketing + + Subscribe to updates from the Marketing Feed + + + + ) + } +`, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Wrapper, + CheckIcon, + Icon, + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + HStack, + VStack, + Text, + Box, + useState, + }, + argsType: {}, + }} + /> + + +#### Form Control + +A checkbox component integrated with form control enhances the user experience by enabling easy selection and submission of options within a structured input context. + + + + + Sign up for newsletters + + + + + Daily Bits + + + + + + Event Updates + + + + + + Sponsorship + + Subscribe to newsletters for updates + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + Wrapper, + Center, + CheckIcon, + Icon, + Text, + VStack, + Heading, + FormControl, + }, + argsType: {}, + }} + /> + + +#### Label left + +A checkbox component with Label left configuration aligns the label to the left, facilitating clear association between the option and its corresponding checkbox. + + + { + setValues(keys) + }}> + + + Jane Cooper + + + + + + Wade Warren + + + + + + Robert Fox + + + + + + + ) + }`, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + Wrapper, + Center, + CheckIcon, + Icon, + VStack, + HStack, + useState, + }, + argsType: {}, + }} + /> + + +#### Controlled + +A controlled component architecture incorporates a checkbox component, allowing for precise management of its state and behavior through explicit control mechanisms. + + + { + setValues(keys); + }}> + + + + + + UX Research + + + + + + Software Development + + + + ) + } + `, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Wrapper, + CheckIcon, + Icon, + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + useState, + Center, + VStack, + }, + argsType: {}, + }} + /> + + +#### Uncontrolled + +An uncontrolled component utilizes a checkbox component, providing a simpler implementation where the checkbox state is managed internally, without explicit control from external sources. + + + { + e.preventDefault(); + const checkboxValue = radioRef.current.checked; + }; + return ( + + + + + + + Apartments + + + + + + Residents + + + + ) + } + `, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Wrapper, + CheckIcon, + Icon, + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + useRef, + Center, + VStack, + }, + argsType: {}, + }} + /> + + +#### Checkbox group + +The checkbox group component allows users to group checkbox and display them in a horizontal or vertical row for better visual representation and functionality. + + + + + + + + + + Label 1 + + + + + + Label 2 + + + + + ); +}; +`, + transformCode: (code) => { + return transformedCode(code, 'function', 'CheckboxExample'); + }, + scope: { + Checkbox, + CheckboxGroup, + CheckboxIndicator, + CheckboxIcon, + CheckboxLabel, + Wrapper, + Center, + CheckIcon, + VStack, + }, + argsType: {}, + }} + /> + diff --git a/example/storybook-nativewind/src/components/Divider/Divider.tsx b/example/storybook-nativewind/src/components/Divider/Divider.tsx index 358d58ce16..fd868e1fad 100644 --- a/example/storybook-nativewind/src/components/Divider/Divider.tsx +++ b/example/storybook-nativewind/src/components/Divider/Divider.tsx @@ -2,11 +2,6 @@ import React from 'react'; import { Divider } from '@/components/ui/divider'; import { HStack } from '@/components/ui/hstack'; import { Heading } from '@/components/ui/heading'; -import { Center } from '@/components/ui/center'; -import { Text } from '@/components/ui/text'; -import { VStack } from '@/components/ui/vstack'; -import { Box } from '@/components/ui/box'; -import { Button, ButtonText } from '@/components/ui/button'; const DividerBasic = ({ ...props }) => { return ( @@ -33,14 +28,4 @@ DividerBasic.description = export default DividerBasic; -export { - Text, - VStack, - HStack, - Divider, - Box, - Heading, - Button, - ButtonText, - Center, -}; +export { HStack, Divider, Heading }; diff --git a/example/storybook-nativewind/src/components/Divider/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Divider/index.nw.stories.mdx index f60172e36a..275d1e31e8 100644 --- a/example/storybook-nativewind/src/components/Divider/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Divider/index.nw.stories.mdx @@ -207,7 +207,7 @@ The Examples section provides visual representations of the different variants o A Divider component with different layouts offers versatile options for visually dividing content in various arrangements, such as horizontal or vertical orientations, enabling flexible and visually appealing designs for organizing and structuring elements within a user interface. - + - + #### Orientation A Divider component with a specified divider orientation allows for clear visual separation of content, either horizontally or vertically, providing a structured and organized layout within a user interface. - + - + #### With & Without Inset A Divider component used with or without inset adds visual hierarchy and distinction by creating a dividing line either with or without indentation, providing options for organizing and structuring content within a user interface. - + - + #### Adding content within a Divider A Divider component with added content allows for the inclusion of additional text or elements alongside the dividing line, enhancing the visual and informational aspects of the divider while providing a seamless integration of content within a user interface. - + - + diff --git a/example/storybook-nativewind/src/components/Divider/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Divider/index.themed.stories.mdx index ae5670aea7..afe2919d79 100644 --- a/example/storybook-nativewind/src/components/Divider/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Divider/index.themed.stories.mdx @@ -206,7 +206,7 @@ The Examples section provides visual representations of the different variants o A Divider component with different layouts offers versatile options for visually dividing content in various arrangements, such as horizontal or vertical orientations, enabling flexible and visually appealing designs for organizing and structuring elements within a user interface. - + - + #### Orientation A Divider component with a specified divider orientation allows for clear visual separation of content, either horizontally or vertically, providing a structured and organized layout within a user interface. - + - + #### With & Without Inset A Divider component used with or without inset adds visual hierarchy and distinction by creating a dividing line either with or without indentation, providing options for organizing and structuring content within a user interface. - + - + #### Adding content within a Divider A Divider component with added content allows for the inclusion of additional text or elements alongside the dividing line, enhancing the visual and informational aspects of the divider while providing a seamless integration of content within a user interface. - + - + diff --git a/example/storybook-nativewind/src/components/Fab/Fab.tsx b/example/storybook-nativewind/src/components/Fab/Fab.tsx index 2b60b98241..740daa9c97 100644 --- a/example/storybook-nativewind/src/components/Fab/Fab.tsx +++ b/example/storybook-nativewind/src/components/Fab/Fab.tsx @@ -1,22 +1,7 @@ import React from 'react'; import { Fab, FabIcon, FabLabel } from '@/components/ui/fab'; -import { Avatar, AvatarImage } from '@/components/ui/avatar'; -import { AddIcon, MenuIcon, SearchIcon, CheckIcon } from '@/components/ui/icon'; +import { MenuIcon } from '@/components/ui/icon'; import { Box } from '@/components/ui/box'; -import { - Checkbox, - CheckboxIndicator, - CheckboxLabel, - CheckboxIcon, -} from '@/components/ui/checkbox'; -import { Link } from '@/components/ui/link'; -import { VStack } from '@/components/ui/vstack'; -import { HStack } from '@/components/ui/hstack'; -import { Heading } from '@/components/ui/heading'; -import { Text } from '@/components/ui/text'; -import { Divider } from '@/components/ui/divider'; -import { Image } from '@/components/ui/image'; -import { EditIcon, ShoppingCartIcon } from 'lucide-react-native'; const FabBasic = (props: any) => { return ( @@ -34,28 +19,4 @@ FabBasic.description = export default FabBasic; -export { - Fab, - FabIcon, - FabLabel, - Avatar, - AvatarImage, - AddIcon, - MenuIcon, - SearchIcon, - CheckIcon, - Box, - Checkbox, - CheckboxIndicator, - CheckboxLabel, - CheckboxIcon, - Link, - VStack, - HStack, - Heading, - Text, - Divider, - Image, - EditIcon, - ShoppingCartIcon, -}; +export { Fab, FabIcon, FabLabel, MenuIcon, Box }; diff --git a/example/storybook-nativewind/src/components/Fab/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Fab/index.nw.stories.mdx index 4e643b0c71..287f49a8f1 100644 --- a/example/storybook-nativewind/src/components/Fab/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Fab/index.nw.stories.mdx @@ -37,7 +37,6 @@ import { Divider, Image, EditIcon, - ShoppingCartIcon, } from '../../core-components/nativewind'; import { transformedCode } from '../../utils'; import { @@ -47,6 +46,7 @@ import { TableContainer, InlineCode, } from '@gluestack/design-system'; +import {ShoppingCartIcon} from 'lucide-react-native' import Wrapper from '../../core-components/nativewind/Wrapper'; import { CollapsibleCode } from '@gluestack/design-system'; @@ -311,7 +311,7 @@ Fab component is created using Pressable component from react-native. It extends #### Fab - + @@ -360,7 +360,7 @@ Fab component is created using Pressable component from react-native. It extends
-
+ > Note: These props are exclusively applicable when utilizing the default configuration of gluestack-ui/config. If you are using a custom theme, these props may not be available. @@ -372,7 +372,7 @@ The Examples section provides visual representations of the different variants o A Fab component with an icon adds a visually striking and easily recognizable button that triggers a specific action or function within a user interface. - + - + {/* EditIcon is imported from 'lucide-react-native' */} @@ -451,13 +451,13 @@ A Fab component with an icon adds a visually striking and easily recognizable bu argsType: {}, }} /> - + #### FAB with Icon and Text A Fab component with an icon and text combines a visual icon with accompanying text to create a prominent and descriptive button that triggers a specific action or function within a user interface. - + - + Search @@ -553,13 +553,13 @@ A Fab component with an icon and text combines a visual icon with accompanying t argsType: {}, }} /> - + #### Placement A Fab component with placement options allows for flexible positioning of the button within a user interface, enabling convenient and intuitive access to key actions or functionalities in various locations. - + - + #### Custom Placement A Fab component with custom placement allows for flexible positioning of the button according to specific design requirements or user interface preferences, providing tailored and intuitive access to key actions or functionalities. - + - + {/* ShoppingCartIcon is imported from 'lucide-react-native' */} @@ -698,4 +698,4 @@ A Fab component with custom placement allows for flexible positioning of the but argsType: {}, }} /> - + diff --git a/example/storybook-nativewind/src/components/Fab/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Fab/index.themed.stories.mdx index 6f5a2b1c74..3f601249b3 100644 --- a/example/storybook-nativewind/src/components/Fab/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Fab/index.themed.stories.mdx @@ -14,33 +14,35 @@ import { Meta } from '@storybook/addon-docs'; -import { Fab, FabIcon, FabLabel } from '../../core-components/themed/fab'; +import { Fab, FabIcon, FabLabel } from '../../core-components/themed'; import { Checkbox, CheckboxIndicator, CheckboxLabel, - CheckboxIcon, - CheckIcon, - ShoppingCartIcon, Image, Box, Link, + HStack, + VStack, + Avatar, + AvatarImage, + Heading, + Text, + Divider, + AddIcon, + CheckboxIcon } from '../../core-components/themed'; -import { HStack, VStack, Avatar, AvatarImage } from '../../core-components/themed'; -import { Heading, Text, Divider } from '../../core-components/themed'; import { transformedCode } from '../../utils'; -import { AddIcon, EditIcon } from '../../core-components/themed'; -import { SearchIcon } from '../../core-components/themed'; +import { EditIcon,SearchIcon,ShoppingCartIcon,CheckIcon } from 'lucide-react-native'; import { AppProvider, CodePreview, Table, TableContainer, InlineCode, + CollapsibleCode } from '@gluestack/design-system'; - import Wrapper from '../../core-components/themed/Wrapper'; -import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Fab** component. @@ -356,7 +358,7 @@ Fab component is created using Pressable component from react-native. It extends - +/> + +### 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. + +#### FAB with Icon + +A Fab component with an icon adds a visually striking and easily recognizable button that triggers a specific action or function within a user interface. + + + + + {data.map((chatData)=>{ + return ( + + + + + + + {chatData.name} + + + {chatData.msg} + + + + ); + })} + + + {/* EditIcon is imported from 'lucide-react-native' */} + + + + ); + } + `, + transformCode: (code) => { + return transformedCode(code, 'function', 'App'); + }, + scope: { + Fab, + FabIcon, + Wrapper, + EditIcon, + Box, + VStack, + HStack, + Avatar, + AvatarImage, + Heading, + Text, + }, + argsType: {}, + }} + /> + + +#### FAB with Icon and Text + +A Fab component with an icon and text combines a visual icon with accompanying text to create a prominent and descriptive button that triggers a specific action or function within a user interface. + + + + + + Search + + + + + HEALTH + + + Benefits of Oranges + + + Oranges are a great source of vitamin C, which is essential for a healthy immune system. + + + + Wade Warrem + + + + 6th Oct, 2019 + + + + 5 mins read + + + + + + + TECHNOLOGY + + + How AI can benefit your business + + + AI can automate tasks and processes, allowing for increasing efficiency and productivity. + + + + Wade Warrem + + + + 6th Oct, 2019 + + + + 5 mins read + + + + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { + Fab, + FabIcon, + FabLabel, + Wrapper, + SearchIcon, + Box, + Divider, + Heading, + Text, + HStack, + VStack, + }, + argsType: {}, + }} + /> + + +#### Placement + +A Fab component with placement options allows for flexible positioning of the button within a user interface, enabling convenient and intuitive access to key actions or functionalities in various locations. + + + + + + + + + + + Prepare any feedback or updates. + + + + + + + + + + Review progress on goals and projects. + + + + + + + + + + Ask challenges and discuss. + + + + + + + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { + Box, + VStack, + Checkbox, + CheckboxIndicator, + CheckboxLabel, + CheckboxIcon, + CheckIcon, + Fab, + FabIcon, + FabLabel, + Wrapper, + AddIcon, + Text, + }, + argsType: {}, + }} + /> + + +#### Custom Placement + +A Fab component with custom placement allows for flexible positioning of the button according to specific design requirements or user interface preferences, providing tailored and intuitive access to key actions or functionalities. + + + + + + + + + Fresh Orange - Imported (Loose) + + + Rs 146(Rs.24.33/pc) + + + DETAILS + + + Oranges are a great source of vitamin C, which is essential for a healthy immune system. Oranges are a great source of vitamin C, which is important for maintaining a healthy immune system. Vitamin C also helps with the absorption of iron and the production of collagen, which supports healthy skin, teeth, and bones. + + + + READ MORE + + + + + {/* ShoppingCartIcon is imported from 'lucide-react-native' */} + + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { + Fab, + FabIcon, + FabLabel, + Wrapper, + Box, + Heading, + Text, + ShoppingCartIcon, + Image, + VStack, + Link, + }, + argsType: {}, + }} + /> + diff --git a/example/storybook-nativewind/src/components/FormControl/index.nw.stories.mdx b/example/storybook-nativewind/src/components/FormControl/index.nw.stories.mdx index bafb924717..2f6a5518fd 100644 --- a/example/storybook-nativewind/src/components/FormControl/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/FormControl/index.nw.stories.mdx @@ -88,7 +88,7 @@ import Wrapper from '../../core-components/nativewind/Wrapper'; This is an illustration of **FormControl** component. - + - + #### Form Control with Radio The Radio Component can be incorporated within the FormControl. - + - + @@ -176,7 +176,7 @@ The Radio Component can be incorporated within the FormControl. - + @@ -186,7 +186,7 @@ The Radio Component can be incorporated within the FormControl. - + @@ -231,7 +231,7 @@ The Radio Component can be incorporated within the FormControl. argsType: {}, }} /> - +
@@ -433,21 +433,6 @@ It inherits all the properties of React Native's [Text](https://reactnative.dev/ FormControl component is created using View component from react-native. It extends all the props supported by [React Native View](https://reactnative.dev/docs/view#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. @@ -541,7 +526,7 @@ The Input Component can be incorporated within the FormControl. The Checkbox Component can be incorporated within the FormControl. - + - + #### Form Control with Textarea The Textarea Component can be incorporated within the FormControl. - + - - -#### Form Control with Inline Form - -Inline forms can utilize FormControl for seamless integration and enhanced functionality. - - - - - - - - - - - - - - - - `, - transformCode: (code) => { - return transformedCode(code); - }, - scope: { - Wrapper, - FormControl, - FormControlLabel, - FormControlLabelText, - FormControlHelper, - FormControlHelperText, - FormControlError, - FormControlErrorIcon, - FormControlErrorText, - Icon, - HStack, - ChevronDownIcon, - Input, - InputField, - Select, - SelectTrigger, - SelectInput, - SelectIcon, - SelectPortal, - SelectBackdrop, - SelectContent, - SelectDragIndicatorWrapper, - SelectDragIndicator, - SelectItem, - Button, - ButtonText, - }, - argsType: {}, - }} - /> - - -#### Form Control with Form in Modal - -Modal or other Overlay components can utilize FormControl for state management and error control. - - - - - { - setShowModal(false) - }} - className='bg-white' - > - - - - - - Change Settings - - - Make modifications to the settings with ease. - - - - - - - Name - - - - - - - - - - Email - - - - - - - - - - Volume - - - - - - - - - - - - - - Dark Mode - - - - - - - - - - ); - } - `, - transformCode: (code) => { - return transformedCode(code, 'function', 'App'); - }, - scope: { - Wrapper, - useState, - Box, - Center, - FormControl, - FormControlLabel, - FormControlLabelText, - FormControlHelper, - FormControlHelperText, - FormControlError, - FormControlErrorIcon, - FormControlErrorText, - Input, - InputField, - Button, - ButtonText, - Slider, - SliderTrack, - SliderFilledTrack, - SliderThumb, - Switch, - Modal, - ModalBackdrop, - ModalContent, - ModalHeader, - ModalCloseButton, - ModalBody, - ModalFooter, - Text: FormControlText, - Heading, - VStack, - HStack, - }, - argsType: {}, - }} - /> - + #### Form Control with Error Error messages can be displayed using FormControl. - + - + @@ -935,7 +686,7 @@ Error messages can be displayed using FormControl. - + @@ -945,7 +696,7 @@ Error messages can be displayed using FormControl. - + @@ -991,13 +742,13 @@ Error messages can be displayed using FormControl. argsType: {}, }} /> - + #### Form Control with Form Actions Form Action Buttons can also be utilized in conjunction with FormControl. - + - + diff --git a/example/storybook-nativewind/src/components/FormControl/index.themed.stories.mdx b/example/storybook-nativewind/src/components/FormControl/index.themed.stories.mdx index c7a77ac500..1d3c2e9591 100644 --- a/example/storybook-nativewind/src/components/FormControl/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/FormControl/index.themed.stories.mdx @@ -538,7 +538,7 @@ The Examples section provides visual representations of the different variants o The Input Component can be incorporated within the FormControl. - + - + #### Form Control with Radio The Radio Component can be incorporated within the FormControl. - + - + #### Form Control with Checkbox The Checkbox Component can be incorporated within the FormControl. - + - + #### Form Control with Textarea The Textarea Component can be incorporated within the FormControl. - + - + #### Form Control with Inline Form Inline forms can utilize FormControl for seamless integration and enhanced functionality. - + - + #### Form Control with Form in Modal Modal or other Overlay components can utilize FormControl for state management and error control. - + - + #### Form Control with Error Error messages can be displayed using FormControl. - + - + #### Form Control with Form Actions Form Action Buttons can also be utilized in conjunction with FormControl. - + - + diff --git a/example/storybook-nativewind/src/components/HStack/HStack.tsx b/example/storybook-nativewind/src/components/HStack/HStack.tsx index 51764f6b38..88d16f6d3c 100644 --- a/example/storybook-nativewind/src/components/HStack/HStack.tsx +++ b/example/storybook-nativewind/src/components/HStack/HStack.tsx @@ -4,11 +4,11 @@ import { Box } from '@gluestack-ui/themed'; const HStackBasic = ({ space, reversed, ...props }: any) => { return ( - - - - - + + + + + ); }; diff --git a/example/storybook-nativewind/src/components/HStack/index.nw.stories.mdx b/example/storybook-nativewind/src/components/HStack/index.nw.stories.mdx index 6c663710bd..8e5e1b1831 100644 --- a/example/storybook-nativewind/src/components/HStack/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/HStack/index.nw.stories.mdx @@ -105,7 +105,7 @@ The accessibility of a HStack is primarily determined by the accessibility infor ### Props -HStack component is created using View component from react-native. It extends all the props supported by [React Native View](https://reactnative.dev/docs/view#props), [utility props](https://ui.gluestack.io/docs/styling/utility-and-sx-props) and the props mentioned below. +HStack component is created using View component from react-native. It extends all the props supported by [React Native View](https://reactnative.dev/docs/view#props) and the props mentioned below. @@ -164,16 +164,31 @@ HStack component is created using View component from react-native. It extends a - +#### HStack Reversed + +An HStack component with the reversed prop reverses the order of horizontally stacked elements, allowing for customized layouts and visual arrangements of content within a user interface. + + + + + + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { Box, Wrapper, HStack }, + argsType: {}, + }} + /> + diff --git a/example/storybook-nativewind/src/components/HStack/index.themed.stories.mdx b/example/storybook-nativewind/src/components/HStack/index.themed.stories.mdx index 07b79ce754..ffa8ec9cdf 100644 --- a/example/storybook-nativewind/src/components/HStack/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/HStack/index.themed.stories.mdx @@ -14,8 +14,7 @@ import { Meta } from '@storybook/addon-docs'; -import { HStack } from '../../core-components/themed'; -import { Box } from '@gluestack-ui/themed'; +import { Box,HStack} from '../../core-components/themed'; import { transformedCode } from '../../utils'; import { AppProvider, @@ -24,10 +23,11 @@ import { TableContainer, Text, InlineCode, + CollapsibleCode } from '@gluestack/design-system'; - import Wrapper from '../../core-components/themed/Wrapper'; -import { CollapsibleCode } from '@gluestack/design-system'; + + This is an illustration of **HStack** component. @@ -178,3 +178,35 @@ Explore the comprehensive details of the HStack in this document, including its src="https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Fproto%2FNcXOxqKbdnGsLQNex3H76u%2F%25C2%25A0%25F0%259F%2593%259Agluestack-UI-handbook%3Fpage-id%3D281%253A13034%26type%3Ddesign%26node-id%3D281-13035%26viewport%3D530%252C248%252C0.07%26scaling%3Dscale-down%26starting-point-node-id%3D281%253A13035" allowFullScreen /> --> + + + + +### 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. + +#### HStack Reversed + +An HStack component with the reversed prop reverses the order of horizontally stacked elements, allowing for customized layouts and visual arrangements of content within a user interface. + + + + + + + + `, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { Box, Wrapper, HStack }, + argsType: {}, + }} + /> + diff --git a/example/storybook-nativewind/src/components/Heading/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Heading/index.nw.stories.mdx index 81a32933a7..6a1258f6b3 100644 --- a/example/storybook-nativewind/src/components/Heading/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Heading/index.nw.stories.mdx @@ -237,7 +237,7 @@ The Examples section provides visual representations of the different variants o Heading component offers a range of sizes, including `xs`, `sm`, `md`, `lg`, `xl`, `2xl`, `3xl`, `4xl`, and `5xl`, allowing users to customize the size of the heading according to their design requirements. - + - \ No newline at end of file + \ No newline at end of file diff --git a/example/storybook-nativewind/src/components/Heading/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Heading/index.themed.stories.mdx index cd9187d4eb..6e23745bcc 100644 --- a/example/storybook-nativewind/src/components/Heading/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Heading/index.themed.stories.mdx @@ -242,7 +242,7 @@ Heading component offers a range of sizes, including `xs`, `sm`, `md`, `lg`, `xl - For `md`, it renders `h5`. - Finally, for `sm` and `xs`, it renders `h6`. - + - + The Heading component also accepts some shorthands for basic quick styling. - + @@ -400,4 +400,4 @@ The Heading component also accepts some shorthands for basic quick styling.
-
+ diff --git a/example/storybook-nativewind/src/components/Icon/Icon.tsx b/example/storybook-nativewind/src/components/Icon/Icon.tsx index 2d7fbfd710..50db7641a0 100644 --- a/example/storybook-nativewind/src/components/Icon/Icon.tsx +++ b/example/storybook-nativewind/src/components/Icon/Icon.tsx @@ -68,7 +68,6 @@ import { Camera, } from 'lucide-react-native'; const IconBasic = ({ size, ...props }: any) => { - // return ; return ; }; diff --git a/example/storybook-nativewind/src/components/Icon/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Icon/index.nw.stories.mdx index 3e61748b5a..0840440396 100644 --- a/example/storybook-nativewind/src/components/Icon/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Icon/index.nw.stories.mdx @@ -15,6 +15,7 @@ import { Meta } from '@storybook/addon-docs'; import { + Center, AddIcon, CheckIcon, CloseIcon, @@ -73,12 +74,14 @@ import { Icon, VStack, HStack, + createIcon, +} from '../../core-components/nativewind'; +import { ChromeIcon, InstagramIcon, FacebookIcon, - createIcon, Camera, -} from '../../core-components/nativewind'; +} from 'lucide-react-native'; import { Path, Rect } from 'react-native-svg'; import { CollapsibleCode } from "@gluestack/design-system" @@ -180,7 +183,7 @@ Role: img is passed ### Props -Icon component is created using AsForwarder component from @gluestack-style/react. It extends all the props supported by [gluestack-ui AsForwarder](https://gluestack.io/style/docs/api/as-forwarder), [utility props](/ui/docs/styling/utility-and-sx-props) and the props mentioned below. +Icon component is created using AsForwarder component from @gluestack-style/react. It extends all the props supported by [gluestack-ui AsForwarder](https://gluestack.io/style/docs/api/as-forwarder) and the props mentioned below. #### Image @@ -219,16 +222,241 @@ Icon component is created using AsForwarder component from @gluestack-style/reac -## Spec Doc +### 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. + +#### All gluestack icons + +Below is a list of all of the icons in the library. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +`, + transformCode: (code) => { + return transformedCode(code); + }, + scope: { + Center, + Wrapper, + HStack, + AddIcon, + CheckIcon, + CloseIcon, + InfoIcon, + ArrowUpIcon, + ChevronDownIcon, + ChevronUpIcon, + ChevronLeftIcon, + ChevronRightIcon, + ChevronsLeftIcon, + ChevronsRightIcon, + AtSignIcon, + CheckCircleIcon, + AlertCircleIcon, + ChevronsUpDownIcon, + PaperclipIcon, + BellIcon, + MenuIcon, + ArrowRightIcon, + ArrowLeftIcon, + ArrowDownIcon, + CalendarDaysIcon, + MessageCircleIcon, + CopyIcon, + TrashIcon, + DownloadIcon, + GripVerticalIcon, + EditIcon, + MailIcon, + LinkIcon, + ExternalLinkIcon, + LockIcon, + RemoveIcon, + MoonIcon, + SlashIcon, + PhoneIcon, + HelpCircleIcon, + RepeatIcon, + Repeat1Icon, + SearchIcon, + SettingsIcon, + LoaderIcon, + StarIcon, + SunIcon, + ClockIcon, + UnlockIcon, + EyeIcon, + EyeOffIcon, + CloseCircleIcon, + ShareIcon, + CircleIcon, + FavouriteIcon, + GlobeIcon, + ThreeDotsIcon, + Icon, + PlayIcon, + }, + argsType: {}, + }} + /> + + +#### Lucide Icons (Recommended) -Explore the comprehensive details of the Icon in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. +[Lucide](https://lucide.dev/docs/lucide-react-native) is an open source icon library for displaying icons for react-native. `gluestack-ui` provides an easy integration with lucide icons. - - ### 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. @@ -502,7 +488,7 @@ The Examples section provides visual representations of the different variants o The Input component integrates with an icon and a button, providing users with a comprehensive login window inside a FormControl component. - + - + ### Input with Icons The Input with Icons is a variation of the Input component that displays icons next to input field. It's commonly used in apps for a more visual representation of options and easier navigation. - + - + diff --git a/example/storybook-nativewind/src/components/Link/index.nw.stories.mdx b/example/storybook-nativewind/src/components/Link/index.nw.stories.mdx index 50d6082740..38bc62f295 100644 --- a/example/storybook-nativewind/src/components/Link/index.nw.stories.mdx +++ b/example/storybook-nativewind/src/components/Link/index.nw.stories.mdx @@ -231,7 +231,7 @@ Link component is created using Pressable component from react-native. It extend #### Link - + @@ -266,7 +266,7 @@ Link component is created using Pressable component from react-native. It extend
-
+ > Note: These props are exclusively applicable when utilizing the default configuration of gluestack-ui/config. If you are using a custom theme, these props may not be available. @@ -276,7 +276,7 @@ The Examples section provides visual representations of the different variants o #### Default - + - + #### Link with icon - + - + diff --git a/example/storybook-nativewind/src/components/Link/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Link/index.themed.stories.mdx index 32935907ab..ae6fbe185a 100644 --- a/example/storybook-nativewind/src/components/Link/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Link/index.themed.stories.mdx @@ -383,7 +383,7 @@ The Examples section provides visual representations of the different variants o #### Default - + - + #### Link with icon - + - + diff --git a/example/storybook-nativewind/src/components/Modal/index.nw.storiesold.mdx b/example/storybook-nativewind/src/components/Modal/index.nw.storiesold.mdx index 756ec455bd..b1e249f991 100644 --- a/example/storybook-nativewind/src/components/Modal/index.nw.storiesold.mdx +++ b/example/storybook-nativewind/src/components/Modal/index.nw.storiesold.mdx @@ -59,7 +59,7 @@ import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Modal** component. - + - +
@@ -203,7 +203,7 @@ This section provides a comprehensive reference list for the component props, de Contains all View related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view#props) component. - + @@ -386,12 +386,12 @@ Contains all View related layout style props and actions. It inherits all the pr
-
+ **Descendants Styling Props** Props to style child components. - + @@ -418,7 +418,7 @@ Props to style child components.
-
+ #### ModalBackdrop @@ -428,7 +428,7 @@ It is React Native's [Pressable](https://reactnative.dev/docs/pressable#props) c It is [@legendapp/motion's](https://legendapp.com/open-source/motion/) [Motion.View](https://legendapp.com/open-source/motion/overview/) component. You can use any declarative animation library you prefer. - + @@ -467,7 +467,7 @@ It is [@legendapp/motion's](https://legendapp.com/open-source/motion/) [Motion.V
-
+ #### ModalHeader @@ -480,7 +480,7 @@ It inherits all the properties of React Native's [View](https://reactnative.dev/ **Descendants Styling Props** Props to style child components. - + @@ -518,7 +518,7 @@ Props to style child components.
-
+ #### ModalBody @@ -538,7 +538,7 @@ Modal component is created using View component from react-native. It extends al #### Modal - + @@ -571,7 +571,7 @@ Modal component is created using View component from react-native. It extends al
-
+ ## Spec Doc diff --git a/example/storybook-nativewind/src/components/Modal/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Modal/index.themed.stories.mdx index 9303430914..5bbca771bf 100644 --- a/example/storybook-nativewind/src/components/Modal/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Modal/index.themed.stories.mdx @@ -1,5 +1,5 @@ --- -title: Modal | gluestack-ui | Installation, Usage, and API +title: gluestack-ui Modal Component | Installation, Usage, and API description: A Modal is a window on top of the primary content to draw the user's attention to important information or actions. It provides a focused and interruptive way to interact with the application. @@ -24,8 +24,6 @@ import { Text as ModalText, Center, CheckCircleIcon, -} from '../../core-components/themed'; -import { Modal, ModalBackdrop, ModalContent, @@ -33,15 +31,13 @@ import { ModalCloseButton, ModalBody, ModalFooter, -} from '../../core-components/themed'; -import { VStack, HStack, Input, InputField, ArrowLeftIcon, Link, -} from '@gluestack-ui/themed'; +} from '../../core-components/themed'; import { transformedCode } from '../../utils'; import { useState } from 'react'; import { @@ -52,14 +48,13 @@ import { AddIcon, InfoIcon, InlineCode, + CollapsibleCode } from '@gluestack/design-system'; - import Wrapper from '../../core-components/themed/Wrapper'; -import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Modal** component. - + +
@@ -99,7 +94,7 @@ This is an illustration of **Modal** component. variant="outline" size="sm" action="secondary" - className='mr-[3px]' + mr="$3" onPress={() => { setShowModal(false); }} @@ -147,7 +142,7 @@ This is an illustration of **Modal** component. argsType: {}, }} /> - +
@@ -204,7 +199,7 @@ This section provides a comprehensive reference list for the component props, de Contains all View related layout style props and actions. It inherits all the properties of React Native's [View](https://reactnative.dev/docs/view#props) component. - + @@ -387,12 +382,12 @@ Contains all View related layout style props and actions. It inherits all the pr
-
+ **Descendants Styling Props** Props to style child components. - + @@ -419,7 +414,7 @@ Props to style child components.
-
+ #### ModalBackdrop @@ -429,7 +424,7 @@ It is React Native's [Pressable](https://reactnative.dev/docs/pressable#props) c It is [@legendapp/motion's](https://legendapp.com/open-source/motion/) [Motion.View](https://legendapp.com/open-source/motion/overview/) component. You can use any declarative animation library you prefer. - + @@ -468,7 +463,7 @@ It is [@legendapp/motion's](https://legendapp.com/open-source/motion/) [Motion.V
-
+ #### ModalHeader @@ -481,7 +476,7 @@ It inherits all the properties of React Native's [View](https://reactnative.dev/ **Descendants Styling Props** Props to style child components. - + @@ -519,7 +514,7 @@ Props to style child components.
-
+ #### ModalBody @@ -539,7 +534,7 @@ Modal component is created using View component from react-native. It extends al #### Modal - + @@ -572,89 +567,326 @@ Modal component is created using View component from react-native. It extends al
-
- -## Spec Doc - -Explore the comprehensive details of the Modal in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. - - - + \ No newline at end of file diff --git a/example/storybook-nativewind/src/components/Textarea/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Textarea/index.themed.stories.mdx index 41169bdbb1..cffd6d351c 100644 --- a/example/storybook-nativewind/src/components/Textarea/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Textarea/index.themed.stories.mdx @@ -355,20 +355,6 @@ Textarea component is created using TextInput component from react-native. It ex -## Spec Doc - -Explore the comprehensive details of the Input in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. - - - ### 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. @@ -377,7 +363,7 @@ The Examples section provides visual representations of the different variants o The Textarea Component can be incorporated within the FormControl. - + - + diff --git a/example/storybook-nativewind/src/components/Toast/index.themed.stories.mdx b/example/storybook-nativewind/src/components/Toast/index.themed.stories.mdx index 7cba185d3a..479ad054f3 100644 --- a/example/storybook-nativewind/src/components/Toast/index.themed.stories.mdx +++ b/example/storybook-nativewind/src/components/Toast/index.themed.stories.mdx @@ -30,7 +30,7 @@ import { AlertTriangleIcon, Pressable, Center, -} from '@gluestack-ui/themed'; +} from '../../core-components/themed'; import { transformedCode } from '../../utils'; import { AppProvider, @@ -39,12 +39,10 @@ import { TableContainer, Text, InlineCode, + CollapsibleCode } from '@gluestack/design-system'; - import { View } from 'react-native'; - import Wrapper from '../../core-components/themed/Wrapper'; -import { CollapsibleCode } from '@gluestack/design-system'; This is an illustration of **Toast** component. @@ -417,20 +415,6 @@ Toast component is created using View component from react-native. It extends al -## Spec Doc - -Explore the comprehensive details of the Toast in this document, including its implementation details, checklist, and potential future additions. Dive into the thought process behind the component and gain insights into its development journey. - -