Skip to content

Conversation

@Shuofeng-Wang
Copy link
Contributor

What

I added the Radio Component as required. This Radio Component will render a radio button on the web page.

How

The Radio Component renders the HTML radio-input element. It also utilizes space and layout API from the styled-system.

Usage

The tag will be needed to define the label/description for the radio button.

<div>
    <Radio id={"customRadio"} />
    <Label htmlFor={"customRadio"} color={"textAccent"} fontSize={"xl"}>Custom1 Radio Btn</Label>
<div>

});

Radio.defaultProps = {
as: "input",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as:input is not needed... if the RadioElement is styled.input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants