For a specific purpose, I am passing CSS Float as props. To achieve this, I have to define it in the following way:
type Props = {
float: ????
}
const Component = ({
float
}: Props) => {......}
What is the most effective approach to accomplish this?
I understand that I can create my own custom type by copying and pasting with options like
left | right | none | inline-start | inline-end
, but is there a less fragile method available?