diff --git a/.changeset/swift-lamps-itch.md b/.changeset/swift-lamps-itch.md new file mode 100644 index 0000000000..2bf1faca00 --- /dev/null +++ b/.changeset/swift-lamps-itch.md @@ -0,0 +1,5 @@ +--- +'@baloise/ds-core': minor +--- + +**segment**: new component diff --git a/docs/stories/components/bal-icon/theming.md b/docs/stories/components/bal-icon/theming.md index 8a2c36c8ec..76cf09c368 100644 --- a/docs/stories/components/bal-icon/theming.md +++ b/docs/stories/components/bal-icon/theming.md @@ -16,6 +16,7 @@ The component can be customization by changing the CSS variables. | --------------------------------- | | `--bal-icon-color-grey` | | `--bal-icon-color-grey-light` | +| `--bal-icon-color-grey-dark` | | `--bal-icon-color-success` | | `--bal-icon-color-success-dark` | | `--bal-icon-color-success-darker` | diff --git a/docs/stories/components/bal-segment/bal-segment.mdx b/docs/stories/components/bal-segment/bal-segment.mdx new file mode 100644 index 0000000000..2c1dd3fd7f --- /dev/null +++ b/docs/stories/components/bal-segment/bal-segment.mdx @@ -0,0 +1,62 @@ +import { Canvas, Meta, Markdown } from '@storybook/blocks' +import { Banner, Lead, PlaygroundBar, StoryHeading, Footer } from '../../../.storybook/blocks' +import * as SegmentStories from './bal-segment.stories' + + + + + + + + + **Segment** offers a list of options. The user can only select one option from a number of choices. It automatically + detects if it has enough space and changes to Vertical. + + + + + + +{/* STORIES */} +{/* ------------------------------------------------------ */} + + + +The segment items can be displayed as a list just set `vertical`. + + + +{/* ------------------------------------------------------ */} + + + +Set `expanded` to stretch the component over the full width. + + + +{/* ------------------------------------------------------ */} + +## Component API + +import api from './api.md?raw' +import apiItem from './bal-segment-item/api.md?raw' + +{api} + +{apiItem} + +## Integration + +import integration from '../../snippets/integration.md?raw' + +{integration} + +import theming from './theming.md?raw' + +{theming} + +import testing from './testing.md?raw' + +{testing} + +