overleaf-cep/services/web/frontend/stories/ui/row.stories.tsx
Tim Down 5c4cb50628 Merge pull request #24988 from overleaf/td-bs5-upgrade-and-rename
Apply minor upgrades to Bootstrap 5 and react-bootstrap

GitOrigin-RevId: eb013f38515ebd4b9572d139f00841aca344e3c6
2025-05-16 08:05:28 +00:00

29 lines
901 B
TypeScript

import { Container, Row, Col } from 'react-bootstrap'
import { Meta } from '@storybook/react'
type Args = React.ComponentProps<typeof Row>
export const ColumnRowCell = (args: Args) => {
return (
<Container style={{ border: '3px solid green' }}>
<Row {...args} style={{ border: '1px solid black' }}>
<Col sm={6} style={{ border: '1px solid red' }}>
<div style={{ backgroundColor: '#ddd' }}>Col 1</div>
</Col>
<Col sm={6} style={{ border: '1px solid red' }}>
<div style={{ backgroundColor: '#ddd' }}>Col 2</div>
</Col>
<Col sm={{ span: 10, offset: 2 }} style={{ border: '1px solid red' }}>
<div style={{ backgroundColor: '#ddd' }}>Col 3</div>
</Col>
</Row>
</Container>
)
}
const meta: Meta<typeof Row> = {
title: 'Shared / Components / Column-Row-Cell',
component: Row,
}
export default meta