Skip to main content

Shadow Field

Component dùng để tạo ra component Shadow (Text shadow, box shadow)

import { ShadowField } from '@xobuilder/ui';

const [value, setValue] = useState<string[]>(['1']);

const options: OptionDescriptor[] = [
{ label: 'Thin', value: '100' },
{ label: 'Extra Light', value: '200' },
{ label: 'Light', value: '300' },
{ label: 'Regular', value: '400' },
];

return <ShadowField selected={value} onChange={setValue} options={options} />;