Skip to content

Latest commit

 

History

History
75 lines (61 loc) · 1.5 KB

TokenRow.stories.mdx

File metadata and controls

75 lines (61 loc) · 1.5 KB

import {Canvas, Meta, Story, ArgsTable} from '@storybook/addon-docs'; import ofDesignTokens from '@open-formulieren/design-tokens/dist/tokens.js';

import TokenRow from './TokenRow';

Token row

export const Template = ({designToken, contained = false}) => (

);

The token row adapts its layout based on the container it is in - by default it's displayed in 'mobile'/'narrow' view, but on wider containers the content is displayed in a single row.

This relies on the @container queries, which are fairly new - not all browsers support this yet!

Default

{Template.bind({})}

Contained

{Template.bind({})}

CSS color properties

{Template.bind({})}

Props