Skip to content

Commit

Permalink
[mantine.dev] Add labelsType prop to DonutChart demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rtivital committed Nov 24, 2024
1 parent 61a24d8 commit 12ef5d8
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,14 @@ export const withLabels: MantineDemo = {
{ fileName: 'data.ts', code: dataCode, language: 'tsx' },
],
centered: true,
controls: [{ type: 'boolean', prop: 'withLabelsLine', initialValue: true, libraryValue: '__' }],
controls: [
{ type: 'boolean', prop: 'withLabelsLine', initialValue: true, libraryValue: '__' },
{
type: 'segmented',
prop: 'labelsType',
initialValue: 'value',
libraryValue: '__',
data: ['value', 'percent'],
},
],
};

0 comments on commit 12ef5d8

Please sign in to comment.