mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
parent
6855633aec
commit
a828625c66
2 changed files with 24 additions and 1 deletions
|
@ -159,4 +159,12 @@ Set `expressive` to `true` to use Carbon's expressive typesetting.
|
|||
<Button size="lg" skeleton />
|
||||
<Button skeleton />
|
||||
<Button skeleton size="field" />
|
||||
<Button skeleton size="small" />
|
||||
<Button skeleton size="small" />
|
||||
|
||||
## Programmatic focus
|
||||
|
||||
Bind to the `ref` prop to access a reference to the underlying button element.
|
||||
|
||||
You can use this reference to programmatically focus the button.
|
||||
|
||||
<FileSource src="/framed/Button/ProgrammaticFocus" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue