Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

feat: skeleton email input #127

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { cssObj } from '@fuel-ui/css';
import { Box } from '@fuel-ui/react';

import { EmailInput } from './EmailInput';

export default {
component: EmailInput,
title: 'EmailInput',
parameters: {
layout: 'fullscreen',
},
};

export const Usage = () => {
return (
<Box.Flex align="center" justify="center" css={styles.storybook}>
<EmailInput />
</Box.Flex>
);
};

const styles = {
storybook: cssObj({
margin: '20px',
}),
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Box, Button, Input, Text } from '@fuel-ui/react';

export const EmailInput = () => {
return (
<Box.Stack>
<Text>Get notified when it settles</Text>
<Box.Flex align="center" justify="space-between">
<Input>
<Input.Field type="email" placeholder="Your email address" />
</Input>
<Button>Notify me</Button>
</Box.Flex>
</Box.Stack>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './EmailInput';
Loading