@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
107 lines (69 loc) • 2.86 kB
text/mdx
import {
ExampleCodeBlock,
StorybookStatusIndicator,
SymbolDoc,
Specifications,
} from '@workday/canvas-kit-docs';
import {InformationHighlight} from '@workday/canvas-kit-preview-react/information-highlight';
import Default from './examples/Top Label/Default';
import DefaultWithCustomOptions from './examples/Top Label/DefaultWithCustomOptions';
import DefaultWithSimpleOptions from './examples/Top Label/DefaultWithSimpleOptions';
import Scrollable from './examples/Top Label/Scrollable';
import Disabled from './examples/Top Label/Disabled';
import Caution from './examples/Top Label/Caution';
import Error from './examples/Top Label/Error';
import Grow from './examples/Top Label/Grow';
import DefaultLeft from './examples/Left Label/DefaultLeft';
import DefaultWithCustomOptionsLeft from './examples/Left Label/DefaultWithCustomOptionsLeft';
import DefaultWithSimpleOptionsLeft from './examples/Left Label/DefaultWithSimpleOptionsLeft';
import ScrollableLeft from './examples/Left Label/ScrollableLeft';
import DisabledLeft from './examples/Left Label/DisabledLeft';
import AlertLeft from './examples/Left Label/AlertLeft';
import ErrorLeft from './examples/Left Label/ErrorLeft';
import GrowLeft from './examples/Left Label/GrowLeft';
<InformationHighlight className="sb-unstyled" variant="caution" cs={{p: {marginBlock: 0}}}>
<InformationHighlight.Icon />
<InformationHighlight.Body>
`Select` in Preview has been deprecated and will be removed in a future major version. Please
use `Select` in Main instead.
</InformationHighlight.Body>
<InformationHighlight.Link href="https://workday.github.io/canvas-kit/?path=/docs/components-inputs-select--docs">
Select (main) Docs
</InformationHighlight.Link>
</InformationHighlight>
<br />
<ExampleCodeBlock code={Default} />
<ExampleCodeBlock code={DefaultWithCustomOptions} />
<ExampleCodeBlock code={DefaultWithSimpleOptions} />
<ExampleCodeBlock code={Scrollable} />
<ExampleCodeBlock code={Disabled} />
<ExampleCodeBlock code={Caution} />
<ExampleCodeBlock code={Error} />
<ExampleCodeBlock code={Grow} />
<ExampleCodeBlock code={DefaultLeft} />
<ExampleCodeBlock code={DefaultWithCustomOptionsLeft} />
<ExampleCodeBlock code={DefaultWithSimpleOptionsLeft} />
<ExampleCodeBlock code={ScrollableLeft} />
<ExampleCodeBlock code={DisabledLeft} />
<ExampleCodeBlock code={CautionLeft} />
<ExampleCodeBlock code={ErrorLeft} />
<ExampleCodeBlock code={GrowLeft} />