diff --git a/packages/mobile/.storybook/storybook.requires.ts b/packages/mobile/.storybook/storybook.requires.ts index cbcedddd661..7c066961945 100644 --- a/packages/mobile/.storybook/storybook.requires.ts +++ b/packages/mobile/.storybook/storybook.requires.ts @@ -57,7 +57,8 @@ const getStories = () => { '../src/harmony-native/Box.stories.tsx': require('../src/harmony-native/components/layout/Box/Box.stories.tsx'), '../src/harmony-native/Flex.stories.tsx': require('../src/harmony-native/components/layout/Flex/Flex.stories.tsx'), '../src/harmony-native/Paper.stories.tsx': require('../src/harmony-native/components/layout/Paper/Paper.stories.tsx'), - '../src/harmony-native/Avatar.stories.tsx': require('../src/harmony-native/components/Avatar/Avatar.stories.tsx') + '../src/harmony-native/Avatar.stories.tsx': require('../src/harmony-native/components/Avatar/Avatar.stories.tsx'), + '../src/harmony-native/Hint.stories.tsx': require('../src/harmony-native/components/Hint/Hint.stories.tsx') } } diff --git a/packages/mobile/src/harmony-native/components/Hint/Hint.stories.tsx b/packages/mobile/src/harmony-native/components/Hint/Hint.stories.tsx new file mode 100644 index 00000000000..62b0cee1172 --- /dev/null +++ b/packages/mobile/src/harmony-native/components/Hint/Hint.stories.tsx @@ -0,0 +1,32 @@ +import type { Meta, StoryObj } from '@storybook/react-native' + +import { IconQuestionCircle } from '@audius/harmony-native' + +import { Flex } from '../layout/Flex/Flex' + +import type { HintProps } from './Hint' +import { Hint } from './Hint' + +const messages = { + hintMessage: 'A helpful hint message to provide information to the user' +} + +const meta: Meta = { + title: 'Components/Hint', + component: Hint, + argTypes: {}, + args: { + icon: IconQuestionCircle + }, + render: (props) => ( + + {messages.hintMessage} + + ) +} + +export default meta + +type Story = StoryObj + +export const Default: Story = {} diff --git a/packages/mobile/src/harmony-native/components/Hint/Hint.tsx b/packages/mobile/src/harmony-native/components/Hint/Hint.tsx new file mode 100644 index 00000000000..c0100fd3426 --- /dev/null +++ b/packages/mobile/src/harmony-native/components/Hint/Hint.tsx @@ -0,0 +1,34 @@ +import type { Icon } from 'app/harmony-native/icons' + +import { Text } from '../Text/Text' +import type { PaperProps } from '../layout' +import { Box, Paper } from '../layout' + +export type HintProps = { + icon: Icon +} & PaperProps + +export const Hint = (props: HintProps) => { + const { icon: Icon, children, ...other } = props + return ( + + + + + {children} + + + + ) +} diff --git a/packages/mobile/src/harmony-native/components/index.ts b/packages/mobile/src/harmony-native/components/index.ts index 73316c3ec3e..976558bab24 100644 --- a/packages/mobile/src/harmony-native/components/index.ts +++ b/packages/mobile/src/harmony-native/components/index.ts @@ -2,3 +2,4 @@ export * from './Link' export * from './Text/Text' export * from './layout' export * from './Avatar/Avatar' +export * from './Hint/Hint'