material-you-react/app/components/radios.tsx

42 lines
1.3 KiB
TypeScript
Raw Normal View History

2024-02-01 00:58:19 +03:00
import React from 'react';
2024-02-01 15:23:59 +03:00
import { Radio } from '../../src/primitive-components/components';
2024-02-01 00:58:19 +03:00
export default function Radios() {
return (
<div className={'m3 m3-wrapper'}>
<h1> Radio </h1>
<div
style={{
display: 'flex',
flexDirection: 'row',
width: '100%',
gap: '5em',
justifyContent: 'center',
}}
>
<div>
<h2> Default </h2>
<div style={{ display: 'flex', gap: '2em' }}>
<Radio centralRipple />
<Radio defaultChecked />
</div>
</div>
<div>
<h2> Disabled </h2>
<div style={{ display: 'flex', gap: '2em' }}>
<Radio disabled />
<Radio defaultChecked disabled />
</div>
</div>
<div>
<h2> With Label </h2>
<form style={{ display: 'flex', gap: '2em' }}>
<Radio> Label </Radio>
<Radio defaultChecked> Label </Radio>
</form>
</div>
2024-02-01 00:58:19 +03:00
</div>
</div>
);
}