import Layout from '../../components/Layout' import { ComponentsSidebar } from '../../sidebars' import { Playground } from '../../components/Playground'; import { Code, Heading, Paragraph } from '@knkui/typography'; export default function Divider() { return ( Button The Button component is the most common button component. It contains a label and optional icons before or after the label. Hello You! `} /> All button variations The Button component has a appearance property with 3 available values: Default Appearance The default form of a button, used for most cases. They are not impactful enough to represent the primary action in a container. ` } /> Primary Appearance Use a primary button to call attention to an action on a form or to highlight the strongest call to action on a page. Primary buttons should only appear once per container (not including the application header or in a modal dialog). Not every screen requires a primary button. ` } /> Minimal Appearance ` } /> Disabled State Set disabled to disable a button when another action has to be completed before the button is usable, such as changing a text field value or waiting for a system response. Disabled Button`} /> Button Sizes
` } /> Button Loading Set loading to indicate the button is loading. The button text is hidden and a spinner is shown in its place, while maintaining the width that it would have if the text were visible. `} />
) }