-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
@stellar/design-system-website/docs/components/inputs/radio-button.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
slug: /radio-button | ||
--- | ||
|
||
# Radio button | ||
|
||
<ComponentDescription componentName="RadioButton" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="RadioButton"> | ||
<RadioButton fieldSize="md" id="radio" label="Label" /> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="RadioButton" /> |
29 changes: 29 additions & 0 deletions
29
@stellar/design-system-website/src/componentPreview/radioButtonPreview.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const radioButtonPreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "fieldSize", | ||
options: [ | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "checkbox", | ||
prop: "disabled", | ||
label: "Disabled", | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 16 additions & 3 deletions
19
@stellar/design-system/src/components/RadioButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters