import * as button from '@remix-run/ui/button' import { css } from '@remix-run/ui' import { Glyph } from '@remix-run/ui/glyph' import { theme } from '@remix-run/ui/theme' /** * @name Button States * @description Buttons support normal, disabled, and busy (loading) states using aria attributes. * @layout center * @order 3 */ export default function Example() { return () => (
) } const buttonRowCss = css({ display: 'flex', alignItems: 'center', gap: theme.space.sm, }) const spinnerGlyphCss = css({ opacity: 0.72, }) const spinCss = css({ '@keyframes demo-button-spin': { from: { transform: 'rotate(0deg)' }, to: { transform: 'rotate(360deg)' }, }, animation: 'demo-button-spin 1s linear infinite', })