1.0.20 • Published 11 months ago
@jswork/mantine-components v1.0.20
mantine-components
Mantine components for React.
installation
npm install -S @jswork/mantine-componentsusage
import css
@import "~@jswork/mantine-components/dist/style.css"; // or use sass @import "~@jswork/mantine-components/dist/style.scss";import js
import React, { useEffect } from 'react'; import { Selection } from '@jswork/mantine-components'; export default () => { const [checked, setChecked] = React.useState(true); // simulate a server response useEffect(() => { setTimeout(() => { console.log('server response received'); setChecked(false); }, 1000); }, []); return ( <div className="relative border w-4/5 mx-auto mt-10"> <Selection value={checked} onChange={setChecked} label="I agree to the terms and conditions" /> <hr /> <Selection selectionType="radio" value={checked} onChange={setChecked} label="I agree to the terms and conditions" /> <pre className="p-5 bg-gray-100">{JSON.stringify({ checked }, null, 2)}</pre> </div> ); };
preview
license
Code released under the MIT license.
1.0.19
11 months ago
1.0.20
11 months ago
1.0.18
1 year ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.11
1 year ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago