Files
Remington BreezeandGitHub 241596c14a feat: New components from Argo Rollouts UI in src/v2 directory (#100)
* feat: New components from Argo Rollotus UI in src/v2 directory

Signed-off-by: Remington Breeze <[email protected]>
2021-06-16 17:07:21 -07:00

16 lines
535 B
TypeScript

import * as React from 'react';
import {Text} from './text';
export default {
component: Text,
title: 'Components/Text',
argTypes: {
children: {control: {type: 'text'}},
dark: {description: 'Light colored text when true. Corresponds to the theme, not the color of the text.'},
theme: {description: 'Same logic as `dark`, but takes precendence over `dark` when set'},
},
};
export const Primary = (args: any) => <Text {...args}>{args.children}</Text>;
Primary.args = {children: 'Hello world'};