-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1494 from gluestack/release/@gluestack-style/reac…
…[email protected] Release/@gluestack style/[email protected]
- Loading branch information
Showing
47 changed files
with
871 additions
and
654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
example/storybook/src/ui/overview/AllComponents/Demos/AccordionDemo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from 'react'; | ||
import { | ||
Accordion, | ||
AccordionItem, | ||
AccordionHeader, | ||
AccordionTrigger, | ||
AccordionTitleText, | ||
AccordionIcon, | ||
AccordionContent, | ||
AccordionContentText, | ||
ScrollView, | ||
} from '@gluestack-ui/themed'; | ||
import { ChevronDownIcon } from 'lucide-react-native'; | ||
import { ChevronUpIcon } from 'lucide-react-native'; | ||
const AccordionDemo = () => { | ||
return ( | ||
<ScrollView contentContainerStyle={{ maxHeight: 50 }}> | ||
<Accordion mt="$5"> | ||
<AccordionItem value="a"> | ||
<AccordionHeader> | ||
<AccordionTrigger> | ||
{(states: any) => ( | ||
<> | ||
<AccordionTitleText> | ||
How do I place an order? | ||
</AccordionTitleText> | ||
{states.isExpanded ? ( | ||
<AccordionIcon as={ChevronUpIcon} /> | ||
) : ( | ||
<AccordionIcon as={ChevronDownIcon} /> | ||
)} | ||
</> | ||
)} | ||
</AccordionTrigger> | ||
</AccordionHeader> | ||
<AccordionContent> | ||
<AccordionContentText> | ||
You can place your order by clicking the "Order Now" button. | ||
</AccordionContentText> | ||
</AccordionContent> | ||
</AccordionItem> | ||
|
||
<AccordionItem value="b"> | ||
<AccordionHeader> | ||
<AccordionTrigger> | ||
{({ isExpanded }: { isExpanded: boolean }) => { | ||
return ( | ||
<> | ||
<AccordionTitleText> | ||
What payment methods do you accept? | ||
</AccordionTitleText> | ||
{isExpanded ? ( | ||
<AccordionIcon as={ChevronUpIcon} /> | ||
) : ( | ||
<AccordionIcon as={ChevronDownIcon} /> | ||
)} | ||
</> | ||
); | ||
}} | ||
</AccordionTrigger> | ||
</AccordionHeader> | ||
<AccordionContent> | ||
<AccordionContentText> | ||
We accept Visa, Mastercard, and American Express. | ||
</AccordionContentText> | ||
</AccordionContent> | ||
</AccordionItem> | ||
</Accordion> | ||
</ScrollView> | ||
); | ||
}; | ||
|
||
export default AccordionDemo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.