import { styled, View } from '@hanzo/gui'; import * as React from 'react'; import { Skeleton } from './skeleton'; // A button whose whole content is an icon. // // `expanded`, `selected` and `highlighted` are React props, so the look they // select is chosen HERE, by merging style objects, rather than by writing // `data-[selected]:` classes and letting a stylesheet re-derive the state that // this component already knows. The `data-*` attributes are still emitted — // they are a DOM contract consumers target — but nothing in this file styles // through them. // // Two things stay CSS because no prop reaches them: the spinner's keyframe (a // gui transition interpolates between two states, it does not loop) and the // size of a descendant `svg`. const IconButtonFrame = styled(View, { name: 'LuxIconButton', render: