diff --git a/build/api/ui.api.md b/build/api/ui.api.md index 8dc8d37f81..a49e0bbb6d 100644 --- a/build/api/ui.api.md +++ b/build/api/ui.api.md @@ -276,6 +276,8 @@ export interface ButtonListProps extends ComponentClassNameProps, DeprecatedButt // @public (undocumented) export interface ButtonOwnProps extends DeprecatedButtonOwnProps, ComponentClassNameProps { + // (undocumented) + accent?: false | 'strong' | 'theme'; // (undocumented) active?: boolean; // (undocumented) diff --git a/packages/admin-sandbox/admin/pages/buttons.tsx b/packages/admin-sandbox/admin/pages/buttons.tsx index cb19147d90..c0ba2b717b 100644 --- a/packages/admin-sandbox/admin/pages/buttons.tsx +++ b/packages/admin-sandbox/admin/pages/buttons.tsx @@ -1,167 +1,164 @@ -import { Button, ButtonGroup, ButtonList, ButtonProps, Select, Tag, TextInput, TextareaInput } from '@contember/admin' +import { Button, ButtonGroup, ButtonList, ButtonProps, Label, Select, Stack, Tag, TextInput, TextareaInput } from '@contember/admin' import { ArrowLeftIcon, ArrowRightIcon } from 'lucide-react' import { Fragment, useState } from 'react' import { SlotSources } from '../components/Slots' -const options = [ - { value: 'small', label: 'small' }, - { value: 'medium', label: 'medium' }, - { value: 'large', label: 'large' }, -] - export default () => { + const [accent, setAccent] = useState('theme') const [size, setSize] = useState<'small' | 'medium' | 'large'>('medium') - const [v, setV] = useState(2) return ( <> Buttons + + + + + + setAccent(it ?? 'theme')} + /> + + + + -