mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-11 04:01:15 -04:00
feat: make fluid an option in container component (#51172)
This commit is contained in:
@@ -4,7 +4,14 @@ import { Container, ContainerProps } from '.';
|
||||
|
||||
const story = {
|
||||
title: 'Example/Container',
|
||||
component: Container
|
||||
component: Container,
|
||||
argTypes: {
|
||||
fluid: {
|
||||
control: {
|
||||
type: 'boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const Template: Story<ContainerProps> = args => {
|
||||
@@ -29,9 +36,4 @@ const Template: Story<ContainerProps> = args => {
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {};
|
||||
|
||||
export const Fluid = Template.bind({});
|
||||
Fluid.args = {
|
||||
fluid: true
|
||||
};
|
||||
|
||||
export default story;
|
||||
|
||||
Reference in New Issue
Block a user