mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props
This commit is contained in:
parent
d38e6d8be6
commit
75d4b4cf03
219 changed files with 5168 additions and 5259 deletions
61
types/RadioButtonGroup/RadioButtonGroup.d.ts
vendored
61
types/RadioButtonGroup/RadioButtonGroup.d.ts
vendored
|
@ -1,36 +1,37 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export interface RadioButtonGroupProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
||||
/**
|
||||
* Set the selected radio button value
|
||||
*/
|
||||
selected?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the radio buttons
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the label position
|
||||
* @default "right"
|
||||
*/
|
||||
labelPosition?: "right" | "left";
|
||||
|
||||
/**
|
||||
* Specify the orientation of the radio buttons
|
||||
* @default "horizontal"
|
||||
*/
|
||||
orientation?: "horizontal" | "vertical";
|
||||
|
||||
/**
|
||||
* Set an id for the container div element
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export default class RadioButtonGroup {
|
||||
$$prop_def: svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> & {
|
||||
/**
|
||||
* Set the selected radio button value
|
||||
*/
|
||||
selected?: string;
|
||||
|
||||
/**
|
||||
* Set to `true` to disable the radio buttons
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Specify the label position
|
||||
* @default "right"
|
||||
*/
|
||||
labelPosition?: "right" | "left";
|
||||
|
||||
/**
|
||||
* Specify the orientation of the radio buttons
|
||||
* @default "horizontal"
|
||||
*/
|
||||
orientation?: "horizontal" | "vertical";
|
||||
|
||||
/**
|
||||
* Set an id for the container div element
|
||||
*/
|
||||
id?: string;
|
||||
};
|
||||
|
||||
$$prop_def: RadioButtonGroupProps;
|
||||
$$slot_def: {
|
||||
default: {};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue