import { RtFrame, RtModifier, RtUse } from '@dpa/react-frame-intro'; import { RtText } from '@dpa/react-text'; import { RtButton, RtButtonRich } from '@dpa/react-buttons'; import { CardDoubledTypographyIcon, InfoCircleFillTypographyIcon, PlusTypographyIcon, SparkTypographyIcon, } from '@dpa/react-typography-icons'; import { Toggler, useToggler } from './components/toggler'; import { useRTL } from '../../hooks/useRTL'; import { RtGrid } from '@dpa/react-grid'; import { Link } from 'react-router-dom'; export function ButtonsPage() { const { isRTL, toggleRTL } = useRTL(); const directionalityToggler = useToggler<'rtl' | 'ltr'>({ initialValue: isRTL ? 'rtl' : 'ltr', label: 'Directionality text', values: ['ltr', 'rtl'], onChange: toggleRTL, }); const loadingToggler = useToggler({ initialValue: false, label: 'Loading', values: [false, true], }); const modificatorTogglerAchromatic = useToggler({ initialValue: 'base', label: 'Modificator', values: ['base', 'mono', 'coloring', 'filling'], }); const useTogglerAchromatic = useToggler({ initialValue: 'achromatic-ashy', label: 'Surface Use', values: [ 'achromatic-ashy', 'achromatic-cloudy', 'primary', 'secondary', 'tertiary', 'quaternary', 'foggy', 'cloudy', 'ashy', 'error', 'success', 'warning', 'neutral', 'notice', 'positive', 'attention', 'negative', ], }); const sizeTogglerAchromatic = useToggler<'sm' | 'md' | 'lg' | 'xl'>({ initialValue: 'sm', label: 'Size', values: ['sm', 'md', 'lg', 'xl'], }); const textDecorationLineTogglerAchromatic = useToggler< 'none' | 'line-through' | 'underline' >({ initialValue: 'none', label: 'Text Decoration Line', values: ['none', 'line-through', 'underline'], }); return (
RT Button Rich
Button link
); }